﻿package com.mui.skins
{
    import fl.core.*;
    import flash.utils.*;

    public class SkinManager extends Object
    {
        private static var _skinObject:Dictionary = new Dictionary();

        public function SkinManager()
        {
            return;
        }// end function

        public static function addStyleSkin(param1:String, param2:Object) : void
        {
            _skinObject[param1] = param2;
            return;
        }// end function

        public static function getStyleSkin(param1:String) : Object
        {
            return _skinObject[param1];
        }// end function

        public static function removeStyleSkin(param1:String) : void
        {
            _skinObject[param1] = null;
            delete _skinObject[param1];
            return;
        }// end function

        public static function setComponentStyle(param1:UIComponent, param2:String) : void
        {
            var _loc_4:SkinStyle = null;
            var _loc_3:* = _skinObject[param2] as Class;
            if (_loc_3)
            {
                _loc_4 = new _loc_3 as SkinStyle;
                _loc_4.setStyle(param1);
            }
            return;
        }// end function

    }
}
